import request from '@/utils/request'

// 创建房屋元信息
export function createHouseMetaInfo(data) {
  return request({
    url: '/system/house-meta-info/create',
    method: 'post',
    data: data
  })
}

// 更新房屋元信息
export function updateHouseMetaInfo(data) {
  return request({
    url: '/system/house-meta-info/update',
    method: 'put',
    data: data
  })
}

// 删除房屋元信息
export function deleteHouseMetaInfo(id) {
  return request({
    url: '/system/house-meta-info/delete?id=' + id,
    method: 'delete'
  })
}

// 获得房屋元信息
export function getHouseMetaInfo(id) {
  return request({
    url: '/system/house-meta-info/get?id=' + id,
    method: 'get'
  })
}

// 获得房屋元信息分页
export function getHouseMetaInfoPage(params) {
  return request({
    url: '/system/house-meta-info/page',
    method: 'get',
    params
  })
}
// 导出房屋元信息 Excel
export function exportHouseMetaInfoExcel(params) {
  return request({
    url: '/system/house-meta-info/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
